<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">品牌认定情况</td>
	</tr>
	<tr>
		<td  align="right" ><span class="color_red">*</span>软件产品名称：</td>
		<td  colspan="5" >
			<input id="zh_title" name="proposal/zh_title" label="软件产品名称" type="text" required class="input_css required "  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr> 
	<tr>
	<td align="right"><span class="color_red">*</span>品牌类型：</td>
	<td nowrap colspan="5" valign="middle">
		<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="brand" label="国家级" value="01" /><span style="vertical-align: middle;margin-left: 5px">国家级</span></label>
		<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="brand" label="省级" value="02" /><span style="vertical-align: middle;margin-left: 5px">省级</span></label>
		<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="brand" label="市级" value="03" /><span style="vertical-align: middle;margin-left: 5px">市级</span></label>
		<input type="hidden" name="proposal/brand_value" id="brand_value" class="required" value="<x:out select="$xmlData/data/proposal/brand_value" />" label="品牌类型" /> 
		<input type="hidden" name="proposal/brand_name" id="brand_name" value="<x:out select="$xmlData/data/proposal/brand_name" />" label="品牌类型" />
	</td>
	</tr>
	<tr>
	<td   align="right"><span class="color_red">*</span>软件产品登记证书号：</td>
	<td  colspan="2">
	<input  name="proposal/software_no"   label="软件产品登记证书号" type="text"  maxlength="50" class="input_css required" value="<x:out select="$xmlData/data/proposal/software_no" />"/> 
	</td>
	<td   align="right"><span class="color_red">*</span>认定机构：</td>
	<td  colspan="2">
	<input  name="proposal/institution"   label="认定机构" type="text"  maxlength="50" class="input_css required" value="<x:out select="$xmlData/data/proposal/institution" />"/> 
	</td>
	</tr>
	<tr>
	<td   align="right"><span class="color_red">*</span>品牌名称：</td>
	<td  colspan="2">
	<input  name="proposal/brand_cname"   label="品牌名称" type="text"  maxlength="50" class="input_css required" value="<x:out select="$xmlData/data/proposal/brand_cname" />"/> 
	</td>
	<td   align="right"><span class="color_red">*</span>认定年度：</td>
	<td  colspan="2">
		<input  name="proposal/hold_year"   label="认定年度" type="text" onfocus="InitInput.setNumber(this,4,0,0)" maxlength="4" class="input_css required year" value="<x:out select="$xmlData/data/proposal/hold_year" />"/>
	</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	
	</tr>
	</table>
	
	<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo1" cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar2"><span class="color_red">*</span>${year-1 }年度企业经营情况</td>
	</tr>
	<tr>
	<td align="right" width="20%" nowrap><span class="color_red">*</span>企业总收入（万元）：</td>
	<td width="30%"><input name="proposal/income_total"  id="income_total"   type="text" 
			class="input_css required valueGreatEqual:income_total:income_software" style="text-align: right" label="企业总收入"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="changePre();"
			value="<x:out select="$xmlData/data/proposal/income_total" />" /></td>
	<td align="right" width="20%"><span class="color_red">*</span>其中软件总收入（万元）：</td>
	<td width="30%"><input name="proposal/income_software"  id="income_software"   type="text" 
			class="input_css required" style="text-align: right" label="其中软件总收入"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="changePre();"
			value="<x:out select="$xmlData/data/proposal/income_software" />" /></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>品牌软件收入（万元）：</td>
	<td><input name="proposal/income_software_noeself"  id="income_software_noeself"   type="text" 
			class="input_css required valueGreatEqual:income_software:income_software_noeself" style="text-align: right" label="品牌软件收入"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="changePre();"
			value="<x:out select="$xmlData/data/proposal/income_software_noeself" />" /></td>
	<td align="right" nowrap><span class="color_red">*</span>品牌软件收入占软件总收入占比（%）：</td>
	<td><input name="proposal/income_software_noeself_pre"  id="income_software_noeself_pre"   type="text" 
			class="input_css gray" style="text-align: right" label="品牌软件收入占软件总收入占比"
			disabled 
			value="<x:out select="$xmlData/data/proposal/income_software_noeself_pre" />" /></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>软件研发投入（万元）：</td>
	<td><input name="proposal/software_research"  id="software_research"   type="text" 
			class="input_css required valueGreatEqual:income_software:software_research" style="text-align: right" label="软件研发投入"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="changePre();"
			value="<x:out select="$xmlData/data/proposal/software_research" />" /></td>
	<td align="right"><span class="color_red">*</span>占软件总收入百分比（%）：</td>
	<td><input name="proposal/software_research_pre"  id="software_research_pre"   type="text" 
			class="input_css gray" style="text-align: right" label="占软件总收入百分比"
			disabled 
			value="<x:out select="$xmlData/data/proposal/software_research_pre" />" /></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo2" cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">申报项目资金情况</td>
		
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right">支持方式：</td>
		<td  colspan="3">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>申请金额（万元）：</td>
	<td >
	<input  name="proposal/sqje" id="sqje"   label="申请金额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	<td  align="right">资金级次：</td>
     <td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市信息化和无线电管理局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	<tr>
		<td class="t_bar2">项目概述：简要概括该软件产品的主要功能、创新性、市场前景（限400字）</td>

	</tr>
	 <tr >
      <td >
			<textarea rows="5" cols="150"  class="input_textarea required  maxlength:400"   name='proposal/summarize'  label="项目概述"><x:out select="$xmlData/data/proposal/summarize"/></textarea>
		   <input type='hidden' name='proposal/summarize_hidden' id='proposal/summarize_hidden' value=''>
		  </td>
      </tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">
    
    
    function changePre(){
    	var income_total = $("#income_software").val();
    	var software_research = $("#software_research").val();
    	var income_software_noeself = $("#income_software_noeself").val();
    	if(income_total =='' || parseInt(income_total) == 0){
    		$("#income_software_noeself_pre").val("0.00");
    		$("#software_research_pre").val("0.00");
    	}else{
    		$("#income_software_noeself_pre").val(formatVal(income_software_noeself*100/income_total));
    		$("#software_research_pre").val(formatVal(software_research*100/income_total));
    	}
    }
</script>